package org.cunamas.core.dto.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.cunamas.core.dto.GraficoBarrasDto;
import org.springframework.jdbc.core.RowMapper;

public class GraficoBarrasMapper  implements RowMapper<GraficoBarrasDto>{

	public GraficoBarrasDto mapRow(ResultSet rs, int rowNum) throws SQLException {
		GraficoBarrasDto dto = new GraficoBarrasDto();
		 dto.setCodPeriodo(rs.getInt(1));
		 dto.setPeriodo(rs.getString(2));
		 dto.setCodCategoria(rs.getInt(3));
		 dto.setCategoria(rs.getString(4));
		 dto.setValor(rs.getInt(5));
		 dto.setPorcentajeValor(rs.getString(6));
		return dto;
	}

	
	
}
